package com.framework.web.bus.repository;

import com.framework.web.bus.domain.Thumb;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


/**
* @Title: Repository
* @Description: repository
* @author fusf
* @date 2016-09-11
* @version V1.0
*
*/
public interface ThumbRepository extends JpaRepository<Thumb, String>,
JpaSpecificationExecutor<Thumb> {

    /**
     * 根据用户和菜谱ID获取列表
     * @param userId
     * @param cookbookId
     * @return
     */
    public List<Thumb> findByUserIdAndCookbookId(String userId,String cookbookId);
}